$(function () {
        if(localStorage.userName=="null" || localStorage.userName==undefined ||  localStorage.userName==""){
    alert("请先登录");
    window.location.href="login.html";
    }
    getcjwt();
    localStorage.removeItem("money");
    localStorage.removeItem("khao");
});
function getcjwt() {
    $.ajax({
        url:requestUrl +"app/queryCardProdunctByPersonal.do",
        data:{
        	"token":window.sessionStorage.getItem("token"),
        	"userId":localStorage.getItem("userId")
        },
        type:"POST",
        dataType:"JSON",
        success:function(json){
            if (json.code==0){
                $(json.data).each(function (i,o) {
                    var dkDiv = $("<a href='jycx.html?name="+o.citizenCardNo+"'><div class='kcard'><div class='klex'>"+o.cardpName+"/"+o.cardTypeName+"</div><div class='kh'>"+o.citizenCardNo+"</div></div></a>").appendTo(".all");
                })
            }else{
                if(json.message=="用户尚未登陆"){
                    window.location.href="login.html";
                }else{
                    alert(json.message);
                }
            }
        }
    })
}